<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
 * 单页类
*/
class article extends CI_Controller {
    /*单页详情*/
    public function index($id = ''){

        if(empty($id)){
            show_404();
        }
        $this->load->model('articlemodel');
        $detail = $this->articlemodel->getArticleInfo($id);
        $data = array(
            'detail' => $detail,
            'id' => $id,
        );
        $this->load->view('article',$data);
    }
}

